﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Meeting.aspx.cs" Inherits="CRM.Web.AvayaICSoftPhone.Meeting" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>内线会议</title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <style type="text/css">
    input 
    {
        BORDER: #1E5494 1px solid; FONT-SIZE: 9pt; FONT-STYLE: normal; FONT-VARIANT: normal; FONT-WEIGHT: normal; HEIGHT: 14px; LINE-HEIGHT: normal
    }
    </style>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js"></script>
    <script type="text/javascript" >
        $(document).ready(function() {
            $('#btnMeeting').click(function(e) {
                var tel = $('#txtTelNumber').val();
                if (tel.length == 0) {
                    alert('请输入电话号码！');
                    return false;
                }
                window.opener.window.Meeting(tel);
            });
            $('#btnATCollabComplete').click(function(e) {
                window.opener.window.ATCollabComplete();
                window.opener = null;
                window.open('', '_self');
                window.close();
            });

            $('#btnATCollabCancel').click(function(e) {
                window.opener.window.ATCollabCancel();
                window.opener = null;
                window.open('', '_self');
                window.close();
            });

            $('.imgTel').click(function(e) {
                e.preventDefault();
                alert('1');
                window.opener.SoftPhoneObject.ATConferenceByAgentId($(this).attr("alt"));
                window.opener = null;
                window.open('', '_self');
                window.close();
            });
        });
    </script>
</head>
<body  bgColor="white" onkeydown="javascript:if(event.keyCode==13) {clik.click();return false;}" >
    <form id="form1" runat="server">
    <div style="display: none;">
        <asp:TextBox ID="txtOutCode" runat="server" Text="0"></asp:TextBox>
    </div>
        <center>
            <table cellspacing="0" cellpadding="0" border="0" width="95%"  class="softPhone">
                <tbody>
                    <tr>
                        <td align="center" style="padding-top: 10px; ">                            
                            <fieldset>
                                <legend>请选择座席或者直接输入电话号码：</legend>
                                <div style="margin-top: 10px; margin-bottom: 10px; margin-left: 10px; text-align: left;">
                                    电话号码：<input type="text" id="txtTelNumber" maxlength="15" onkeypress="var k=event.keyCode; return k>=48&&k<=57" />&nbsp; &nbsp;                                                 
                                    <button id="btnMeeting" onclick="" class="btn title_qd" >呼叫</button>&nbsp; &nbsp; 
                                    <button id="btnATCollabComplete" onclick="" class="btn title_qd" >确认</button>&nbsp; &nbsp; 
                                    <button id="btnATCollabCancel" onclick="" class="btn title_qd" >取消</button>&nbsp; &nbsp; 
                                    <button name="btnClose" onclick="window.opener=null;window.open('','_self');window.close();"  class="btn title_gb" >关闭</button>                                                
                                </div>
                                <hr  />
                                <table style="width:100%">
                                    <tr>
                                        <td>
                                            <font face="黑体">
                                                <br />
                                            </font>
                                        </td>
                                    </tr>
                                </table>
                            </fieldset>
                        </td>
                    </tr>
                </tbody>
            </table>
        </center>
    </form>
</body>
</html>
